function plotcloth(array,Restlength)
tensor=array2tensor(array);
X=tensor(:,:,1);
Y=tensor(:,:,2);
Z=tensor(:,:,3);
surfcloth(X,Y,Z,Restlength);
% hold on
% grid on
% surf(X,Y,Z);
% % surfcloth(X,Y,Z,Restlength);
% % sphere
% % [x,y,z]=sphere;
% % surf(2.*x,2.*y,2.*z);
% hold off